package C11_10_FormTemplateMethod.refactorafter;

/**
 * @ClassName : Site
 * @Description :
 * @Author : wukj1
 * @Date: 2022/8/16
 **/
public class Site {
    protected double units;
    protected double rate;
    public static final Double TAX_RATE = 0.1;

    public Site(double units, double rate) {
        this.units = units;
        this.rate = rate;
    }

    public double getBillableAmount() {
        return getBaseAmount() + getTaxAmount();
    }

    protected double getBaseAmount() {
        return 0;
    }

    protected double getTaxAmount() {
        return 0;
    }

}
